<?php
/**
 * ExtRowSelectionModel class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtRowSelectionModel extends ExtAbstractSelectionModel
{
    /**
     * Gets the value of ExtJS moveEditorOnEnter property
     * @return Boolean 
     */
    public function getMoveEditorOnEnter()
    {
    	return $this->getConfig("moveeditoronenter");
    }

    /**
     * Sets the value of ExtJS moveEditorOnEnter property
     * @param Boolean $value 
     */
    public function setMoveEditorOnEnter($value)
    {
    	$this->setConfig("moveeditoronenter",$value);
    }

    /**
     * Gets the value of ExtJS singleSelect property
     * @return Boolean 
     */
    public function getSingleSelect()
    {
    	return $this->getConfig("singleselect");
    }

    /**
     * Sets the value of ExtJS singleSelect property
     * @param Boolean $value 
     */
    public function setSingleSelect($value)
    {
    	$this->setConfig("singleselect",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'moveeditoronenter' => 'moveEditorOnEnter',
            'singleselect' => 'singleSelect'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforerowselect' => array('sender','rowIndex','keepExisting','record'),
            'rowdeselect' => array('sender','rowIndex','record'),
            'rowselect' => array('sender','rowIndex','r'),
            'selectionchange' => array('sender')
        ));


        $this->setXType(null);
        $this->setXClass('Ext.grid.RowSelectionModel');
    }    
}
?>